package com.likai.jarscms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.likai.jarscms.dao.ITagMapper;
import com.likai.jarscms.pojo.TagBean;
import com.likai.jarscms.service.ITagService;
import org.springframework.transaction.annotation.Transactional;

@Service("tagService")
public class TagServiceImpl implements ITagService {
	
	@Autowired
	private ITagMapper tagMapper ;

	@Transactional(readOnly = true)
	public List<TagBean> findList() {
		return tagMapper.selectList();
	}

	@Transactional(readOnly = true)
	public TagBean findById(String id) {
		return tagMapper.selectTagById(id);
	}

	@Transactional(readOnly = true)
	public List<TagBean> randomList(Integer num) {
		return tagMapper.randomList(num);
	}

}
